package com.spt.ws.tasks.impl;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.spt.core.Property;
import com.spt.core.TaskAnnotation;
import com.spt.ws.client.WebServiceBase;
import com.spt.ws.dao.IClientDao;
import com.spt.ws.dao.impl.IManageDaoImpl;
import com.spt.ws.tasks.ITask;

@Component(value="analyzeTableBean")
@TaskAnnotation (job_name = "表分析",  task_id="sys_analyze_tables", group_id="sys_table", cron="0/4 * * * * ?", autoRun="N")
public class TaskTest1 extends WebServiceBase implements ITask {
    private static Logger log = LogManager.getLogger("com.spt.ws.client");
    @Autowired
    private IClientDao dao;
    
    @Autowired 
    private IManageDaoImpl manageService;
    
    private String head = "#HEAD";
    private String end = "#END";
    @Override
    public void doTask() throws Exception {
        /*String res = callWS("getGKCX", "#HEAD::2017073010000001FJ000000001::9910089765123::10000001::10007999:: :: ::||#END");
        System.out.println(res);*/
        manageService.analyzeTable();
    }

}
